kill @e[tag=hub.menuEntity,type=!marker]

##Create SonEntity
execute rotated ~-20 ~ positioned ^ ^ ^3.25 summon item_display run function vs:system/hub/menu/init/gamerule_settings/select_gamerule-last
execute rotated ~20 ~ positioned ^ ^ ^3.25 summon item_display run function vs:system/hub/menu/init/gamerule_settings/select_gamerule-next
execute positioned ^ ^0.4 ^3 summon text_display run function vs:system/hub/menu/init/gamerule_settings/select_gamerule-text
execute positioned ^ ^0.1 ^3 summon text_display run function vs:system/hub/menu/init/gamerule_settings/select_gamerule-value_text
execute positioned ^ ^ ^3.25 summon item_display run function vs:system/hub/menu/init/gamerule_settings/select_gamerule


execute positioned 10.5 -34.9 9.5 summon text_display run function vs:system/hub/menu/init/gamerule_settings/add_tips
execute positioned 9.5 -34.9 10.5 summon text_display run function vs:system/hub/menu/init/gamerule_settings/remove_tips


execute rotated ~50 ~ positioned ^ ^0.1 ^3 summon text_display run function vs:system/hub/menu/init/gamerule_settings/back_to_main-text
execute rotated ~50 ~ positioned ^ ^ ^3.25 summon item_display run function vs:system/hub/menu/init/gamerule_settings/back_to_main


data modify entity @s data.menu set value "gamerules"